//*********************************************************************
// Copyright (C) 2014 Hell Prototypes / www.hellprototypes.com
// 
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or (at
// your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
//********************************************************************
#ifndef BUTTONS_H_
#define BUTTONS_H_


/** **********************************************************/
#define KEY_NONE				0
#define KEY_BTM_LEFT			1
#define KEY_BTM_RIGHT			2
#define KEY_3WS_DOWN			3
#define KEY_3WS_PUSH			4
#define KEY_3WS_UP				5
#define KEY_TOP_RIGHT			6
#define KEY_TOP_LEFT			7
#define KEY_MAIN				8
#define KEY_WAIT_FLAG			0xFF
/** **********************************************************/
void key_init(void);
uint8_t get_key_value(uint16_t timeout);

#endif /* BUTTONS_H_ */